Fix warnings from docstrings when building docs, remove t_stick_breaking - #4283
Merged
Conversation
MarcoGorelli
commented
Dec 2, 2020
| ordered | ||
| log | ||
| sum_to_1 | ||
| t_stick_breaking |
Contributor
Author
There was a problem hiding this comment.
removed in #4129 , looks like it was never removed from here though
MarcoGorelli
commented
Dec 2, 2020
| ----- | ||
| Optional keyword arguments can be passed to ``sample`` to be delivered to the | ||
| ``step_method``s used during sampling. | ||
| ``step_method``\ s used during sampling. |
Contributor
Author
MarcoGorelli
commented
Dec 2, 2020
Comment on lines
-398
to
+415
| >>> import pymc3 as pm | ||
| ... n = 100 | ||
| ... h = 61 | ||
| ... alpha = 2 | ||
| ... beta = 2 | ||
| In [1]: import pymc3 as pm | ||
| ...: n = 100 | ||
| ...: h = 61 | ||
| ...: alpha = 2 | ||
| ...: beta = 2 | ||
|
|
||
| .. code:: ipython | ||
| In [2]: with pm.Model() as model: # context management | ||
| ...: p = pm.Beta("p", alpha=alpha, beta=beta) | ||
| ...: y = pm.Binomial("y", n=n, p=p, observed=h) | ||
| ...: trace = pm.sample() | ||
|
|
||
| >>> with pm.Model() as model: # context management | ||
| ... p = pm.Beta('p', alpha=alpha, beta=beta) | ||
| ... y = pm.Binomial('y', n=n, p=p, observed=h) | ||
| ... trace = pm.sample() | ||
| >>> pm.summary(trace) | ||
| mean sd mc_error hpd_2.5 hpd_97.5 | ||
| p 0.604625 0.047086 0.00078 0.510498 0.694774 | ||
| In [3]: pm.summary(trace, kind="stats") | ||
|
|
||
| Out[3]: | ||
| mean sd hdi_3% hdi_97% | ||
| p 0.609 0.047 0.528 0.699 |
twiecki
approved these changes
Dec 2, 2020
Codecov Report
@@ Coverage Diff @@
## master #4283 +/- ##
=======================================
Coverage 87.59% 87.59%
=======================================
Files 88 88
Lines 14312 14312
=======================================
Hits 12536 12536
Misses 1776 1776
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



xref #4276